/*
 * All content copyright http://www.j2eefast.com, unless 
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.produce.pms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.framework.sys.entity.SysUserEntity;
import com.j2eefast.produce.pms.entity.PmsSampleEntryEntity;
import com.j2eefast.produce.pms.entity.PmsSampleOutputEntity;
import org.apache.ibatis.annotations.Param;

import javax.xml.crypto.Data;
import java.util.List;

/**
 * <p>样品检测数据录入</p>
 *
 * @author: summer
 * @date: 2021-05-28 16:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
public interface PmsSampleEntryMapper extends BaseMapper<PmsSampleEntryEntity> {

	public boolean deleteByIds(@Param("ids") Long[] ids);

	//	样品检测数据校核
	public boolean updateCheck(@Param("id") Long id, @Param("checkStatus") int checkStatus, @Param("updateBy")String updateBy );

//	样品检测数据签发
	public boolean issuedCheck(@Param("id") Long id, @Param("issuedStatus") int issuedStatus, @Param("updateBy")String updateBy );
	/**
	 * 页面查询流程实例分页
	 * @return
	 */
	Page<PmsSampleEntryEntity> findPage(IPage<?> params,
                                         @Param("testCode") String testCode,
                                         @Param("testType") String testType,
										@Param("sql_filter") String sql_filter);

	List<PmsSampleEntryEntity> findList(IPage<?> params,
										@Param("testCode") String testCode,
										@Param("testType") String testType,
										@Param("sql_filter") String sql_filter);

	//查询列表
	public PmsSampleEntryEntity selectSampleEntry();
}
